import {request} from './request.js'


export default {
	async login(data) {
	    return request('/authBase/token', 'post', data)
	},
	async weixinlogin(data) {
	    return request('/authBase/weixinUserInfo', 'post', data)
	},
	//保存微信信息
	async weixinsave(data) {
	    return request('/authBase/weixinsave', 'post', data)
	},
	
	async addJob(data) {
	    return await request('/app/work/work/add', 'post', data)
	},
	async jobInfoPage(data) {
	    return await request('/app/work/work/page', 'post', data)
	},
	async getHomeBanner(data) {
	    return await request('/home/bannerList', 'post', data)
	},
	//首页甄选商品
	async recGoodsList(data) {
	    return await request('/goods/recGoodsList', 'post', data)
	},
	// 商品 20211211
	async goodsData(data) {
	    return await request('/goods/get_data', 'post', data)
	},
	//首页甄选活动
	async recActivityList(data) {
	    return await request('/goods/recActivity', 'post', data)
	},
	//套餐列表
	async packageList(data) {
	    return await request('/package/list', 'post', data)
	},
	//活动列表
	async activityList(data) {
	    return await request('/activity/list', 'post', data)
	},
	// 帖子相关接口 20211210
	async communityData(data) {
	    return await request('/community/get_data', 'post', data)
	},
	//关注用户
	async communityConcernUpd(data) {
	    return await request('/community/ConcernUpd', 'post', data)
	},
	//收藏帖子
	async communityCollectionUpd(data) {
	    return await request('/community/communityCollectionUpd', 'post', data)
	},
	//发布评论
	async communitySendComment(data) {
	    return await request('/community/sendComment', 'post', data)
	},
	//用户接口
	async memberAddress(data) {
	    return await request('/member/address', 'post', data)
	},
	//用户数据
	async memberData(data) {
	    return await request('/member/get_data', 'post', data)
	},
	//用户信息接口
	async memberInfo(data) {
	    return await request('/member/info', 'post', data)
	},
	//订单接口 下单
	async orderCart(data) {
	    return await request('/cart/order', 'post', data)
	},
	//支付
	async orderPay(data) {
	    return await request('/cart/pay', 'post', data)
	},
	//积分兑换 下单
	async integralPay(data) {
	    return await request('/cart/integral_pay', 'post', data)
	},
	
}